import Vue from 'vue'
import Router from 'vue-router'
import login from '@/views/login'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/login',
    name: 'login',
    component: login,
    meta: {
      keepAlive: false
    }
  },
    // 主页
  {
    path: '/home',
    name: 'home',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/home.vue')
  },
    // 在线通信
  {
    path: '/sys/chat',
    name: 'chat',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/chat/chat.vue')
  },
    // 发送邮件
  {
    path: '/sys/mail',
    name: 'chat',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/chat/mail.vue')
  },

    // 用户管理
  {
    path: '/sys/user',
    name: 'userManager',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/sys/userManage.vue')
  },
    // 日志管理
  {
    path: '/sys/log',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/sys/logManage.vue')
  },
    // 角色管理
  {
    path: '/sys/role',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/sys/roleManage.vue')
  },
    // 日志树
  {
    path: '/sys/logtree',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/sys/logtree.vue')
  },
    // druid数据连接池
  {
    path: '/sys/druid',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/sys/druid.vue')
  },

    // 可视化Kibana
  {
    path: '/sys/board',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/sys/kibana.vue')
  },

    // 车辆档案添加页面
  {
    path: '/sys/dataadd',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/data/dataadd.vue')
  },

    // etc卡口车辆数据添加页面
  {
    path: '/sys/etcdataadd',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/data/etckakoudataAdd.vue')
  },
    // 车辆数据查询页面
  {
    path: '/sys/datafind',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/data/datafind.vue')
  },
    // etc样例数据输入
  {
    path: '/data/addetc',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/data/adddatatestetc.vue')
  },
    // 数据总量统计
  {
    path: '/sys/dataCount',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/data/dataCount.vue')
  },
    // 卡口样例数据输入
  {
    path: '/data/addkakou',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/data/adddatatestkakou.vue')
  },

    // 菜单管理
  {
    path: '/sys/menu',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/sys/menuManage.vue')
  },

    // 字典管理
  {
    path: '/sys/dict',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/sys/dict.vue')
  },
    // 权限分配
  {
    path: '/sys/rolemanage',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/sys/rolefenpei.vue')
  },

    // 套牌车页面
  {
    path: '/sys/taopaiche/:car_number',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/moxing/taopaiche.vue')
  },
  {
    path: '/sys/taopaiche',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/moxing/taopaiche.vue')
  },
    // 频繁车页面
  {
    path: '/sys/pinfan',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/moxing/pinfanche.vue')
  },
    // 昼伏夜出
  {
    path: '/sys/daynight',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/moxing/daynight.vue')
  },
    // 外来车辆
  {
    path: '/sys/other',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/moxing/wailaicar.vue')
  },
    // 僵尸车
  {
    path: '/sys/jiangshicar',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/moxing/jiangshicar.vue')
  },

    // 车辆违规记录管理
  {
    path: '/sys/traffic',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/weigui/traffic.vue')
  },

    // 待布控处置
  {
    path: '/sys/bukongdo',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/task/bukongdo.vue')
  },
    // 已处置任务
  {
    path: '/sys/taskfinish',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/task/taskfinish.vue')
  },

    // 发布通知
  {
    path: '/sys/notice',
    meta: {
      keepAlive: true
    },
    component: () => import('../views/sys/notice.vue')
  }

  ]
})
